import UIAbility from '@ohos.app.ability.UIAbility';
import Window from '@ohos.window';


// 引入开放能力包
import agconnect from '@hw-agconnect/api-ohos'
import '@hw-agconnect/core-ohos'
import '@hw-agconnect/auth-ohos'
import '@hw-agconnect/function-ohos'

export default class EntryAbility extends UIAbility {

  onCreate() {
    /**
     * 如果要使用agconnect服务首先需要在这里初始化
     * https://developer.huawei.com/consumer/cn/doc/AppGallery-connect-Guides/agc-get-started-harmony-ts-0000001534932433
     */
    agconnect.instance().init(this.context.getApplicationContext())
  }

  onWindowStageCreate(windowStage: Window.WindowStage) {
    windowStage.loadContent('pages/Login', (err, data) => {});
  }
}
